import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [

   {
    title: '项目需求',
    align: "center", resizable: true,
    dataIndex: 'additionalId_dictText'
  },
       {
    title: '提交时间',
    align: "center", resizable: true,
    dataIndex: 'createTime'
  },
     {
    title: '提交人',
    align: "center", resizable: true,
    dataIndex: 'userId_dictText'
  },
  {
    title: '合同价',
    align: "center", resizable: true,
    dataIndex: 'contractPrice'
  },
  {
    title: '含税价格',
    align: "center", resizable: true,
    dataIndex: 'taxInclusivePrice'
  },
  {
    title: '税率%',
    align: "center", resizable: true,
    dataIndex: 'taxRate'
  },
  {
    title: '报价文件',
    align: "center", resizable: true,
    dataIndex: 'quotationFile',
  },
  {
    title: '状态',
    align: "center", resizable: true,
    dataIndex: 'status_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  projectId: {title: '项目',order: 0,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  subProjectId: {title: '子项目',order: 1,view: 'list', type: 'string',dictTable: "c_sub_project", dictCode: 'id', dictText: 'sub_project_name',},
  contractPrice: {title: '合同价',order: 2,view: 'number', type: 'number',},
  taxInclusivePrice: {title: '含税价格',order: 3,view: 'number', type: 'number',},
  taxRate: {title: '税率',order: 4,view: 'number', type: 'number',},
  quotationFile: {title: '报价文件',order: 5,view: 'file', type: 'string',},
  status: {title: '状态',order: 6,view: 'list', type: 'string',dictCode: 'sub_project_status',},
};
